#include "A.h"

static A *_a;

A::A()
:name("chizhaoliu")
{
	//std::strcpy(name,"chizhaoliu");
}

A::~A(){
	//delete _a;
}

A *A::getInstance()
{
	if(_a == NULL)
		_a = new A();
	return _a;
}

void A::setName(char *n)
{
	//std::strcpy(name,n);
	name = n;
}

char * A::getName()
{
	return name;
}

void A::say()
{
	std::cout<<"My Name is : "<<getName()<<std::endl;
}
